<?php 

	if (isset($url)){
		echo '<META HTTP-EQUIV="Refresh" CONTENT="5;URL='.$url.'">';
	}

	$answer_result = $this->Session->read('Asession.answer_result');

	if ($answer_result == 'correct'){
			echo '<div class="correct">Correct</div>';
			echo '<embed src="/sounds/correct.wav" autostart="true" loop="false" hidden="true">';

	}
	elseif ($answer_result == 'wrong'){
			echo '<div class="wrong">Incorrect</div>';
			echo '<embed src="/sounds/wrong.wav" autostart="true" loop="false" hidden="true">';
	}

	$answer_result = $this->Session->delete('Asession.answer_result');

?>